#!/bin/sh
base_path=$(dirname $0)
echo $base_path
mysql -uroot -proot -hhadoop3<<EOF
use mid;
truncate table mid_coupon_all;
truncate table mid_direct;
truncate table mid_oilnotoil;
truncate table mid_ordinary;
EOF
sh ${base_path}/main/mid_coupon_all_main.sh
sh ${base_path}/main/mid_direct_main.sh
sh ${base_path}/main/mid_oilnotoil_main.sh
sh ${base_path}/main/mid_ordinary_main.sh
sh ${base_path}/main/res_coupon_sum_main.sh
#truncate table res_coupon_sum;
